<div class="row">
	<div class="nine columns">
		<div class="panel">
			<h2>Clientes</h2>
			<?php 
			echo $this->paginationControl($this->paginator, 'Sliding', 'templates/pagination.phtml');
			?>
			<?php if(count($this->paginator)==0) { ?>
				<p>No hay resultados disponibles.</p>
			<?php } else { ?>
				<table border="1">
				<thead>
					<tr>
					  <th>ID</th>
					  <th>Cliente</th>	  	  
					  <th>E-mail</th>	  	  
					  <th>Ultimo Ingreso</th>	  	  
					  <th>Opciones</th>	  
					</tr>
				</thead>
				<tbody>
				<?php 
				 foreach($this->paginator as $record){ ?>
					<tr>
					  <td><?=$record['id_cliente']?></td>	
					  <td><?=$record['nombre'].' '.$record['apellido']?></td>	  
					  <td><?=$record['email']?></td>	  
					  <td><?=$record['ultimo_ingreso']?></td>	  
					  <td>
						<a href="<?php echo $this->baseUrl("/admin/clienteseditar/id/".$record['id_cliente']); ?>">Editar</a>
						|
						<a href="<?php echo $this->baseUrl("/admin/clientesborrar/id/".$record['id_cliente']); ?>">Borrar</a>		
					    |
						<a href="<?php echo $this->baseUrl("/admin/clientesreset/id/".$record['id_cliente']); ?>">Pwd</a>		
					  </td>	  
					</tr>
					
				<? } ?>
				</tbody>
				</table>
			<?php }?>
		</div>
	</div>
	<div class="three columns panel callout">
		<h3>Opciones</h3>
		<ul>
			<li><a href="<?php echo $this->baseUrl("/admin/clientescargar");?>">Cargar Nuevo</a></li>
		</ul>
		<p> Instrucciones para cargar clientes </p>
	</div>
</div>

			
